"/* Comments should be made as top level strings for compatibility across javascript and python */";

rules = {};

rules['POEM'] = [
  'CLAUSE COMMA NEWLINE CLAUSE COMMA NEWLINE CLAUSE COMMA NEWLINE CLAUSE PERIOD',
];

rules['SENTENCE'] = [
  'CLAUSE PERIOD',
  'CLAUSE COMMA CLAUSE PERIOD',
  'CLAUSE COMMA CLAUSE COMMA CLAUSE PERIOD',
  'CLAUSE COMMA CLAUSE COMMA CLAUSE COMMA CLAUSE PERIOD',
  'CLAUSE COMMA CLAUSE COMMA CLAUSE COMMA CLAUSE COMMA CLAUSE PERIOD',
];

rules['CLAUSE'] = [
  'SUBJECT TRANS_VERB_PHRASE OBJECT 了',
  'SUBJECT INTRANS_VERB_PHRASE 了',
  'SUBJECT TRANS_VERB_PHRASE OBJECT',
  'SUBJECT INTRANS_VERB_PHRASE',
  'SUBJECT TRANS_VERB_PHRASE OBJECT',
  'SUBJECT INTRANS_VERB_PHRASE',
  'SUBJECT TRANS_VERB_PHRASE OBJECT',
  'SUBJECT INTRANS_VERB_PHRASE',
  'SUBJECT TRANS_VERB_PHRASE OBJECT',
  'SUBJECT INTRANS_VERB_PHRASE',
];

rules['SUBJECT'] = [
  'NOUN_PHRASE',
];

rules['OBJECT'] = [
  'NOUN_PHRASE',
];

rules['NOUN_PHRASE'] = [
  'NOUN',
  'ADJECTIVE NOUN',
  'QUANTIFIER COUNTABLE_NOUN',
  'QUANTIFIER ADJECTIVE COUNTABLE_NOUN',
];

rules['QUANTIFIER'] = [
  'COUNTER',
  'APPROXIMATION',
];

rules['COUNTER'] = [
  'NUMBER UNIT',
];

rules['TRANS_VERB_PHRASE'] = [
  'TRANS_VERB',
  'ADVERB TRANS_VERB',
];

rules['INTRANS_VERB_PHRASE'] = [
  'INTRANS_VERB',
  'ADVERB INTRANS_VERB',
];

rules['NOUN'] = [
  'UNCOUNTABLE_NOUN',
  'UNCOUNTABLE_NOUN',
  'COUNTABLE_NOUN',
];

rules['UNCOUNTABLE_NOUN'] = [
  'PRONOUN',
  'PROPER_NOUN',
];

rules['PROPER_NOUN'] = [
  '小明',
  '小敏',
  '小文',
  '小斌',
  '小能',
];

rules['COUNTABLE_NOUN'] = [
  '西瓜',
  '電腦',
  '人渣',
  '水',
  '大便',
  '手鎗',
  '山羊',
  '水果',
  '小妹妹',
];

rules['PRONOUN'] = [
  '我',
  '你',
  '他',
  '她',
  '牠',
  '它',
  '我們',
  '你們',
  '他們',
];

rules['APPROXIMATION'] = [
  '很多',
  '少許',
  '大量',
  '寥寥可數的',
];

rules['NUMBER'] = [
  '一',
  '兩',
  '三',
  '四',
  '五',
  '六',
  '七',
  '八',
  '九',
  '十',
];

rules['UNIT'] = [
  '個',
  '隻',
  '堆',
  '片',
  '頭',
  '條',
  '塊',
  '粒',
  '件',
];

rules['TRANS_VERB'] = [
  '吃',
  '吹',
  '屌',
  '打',
  '飲',
  '呼喚',
  '擊落',
  '推倒',
];

rules['INTRANS_VERB'] = [
  '死',
  '哭泣',
  '笑',
  '坐',
  '走路',
  '尖叫',
];

rules['ADJECTIVE'] = [
  '高大的',
  '芬芳的',
  '有趣的',
  '強健的',
  '成熟的',
  '勤勉的',
  '幼嫩的',
  '瘋狂的',
  '粗壯的',
  '新鮮的',
];

rules['ADVERB'] = [
  '安靜地',
  '豪邁地',
  '瀟灑地',
  '狠狠地',
  '飛快地',
  '慢慢地',
  '奸詐地',
  '高興地',
  '興奮地',
];

rules['NEWLINE'] = [
  '\n',
];

rules['PERIOD'] = [
  '。',
];

rules['COMMA'] = [
  '，',
];

